//
//  CustomButton.h
//  CommonUI
//
//  Created by xiong qi on 13-1-5.
//  Copyright (c) 2013年 appfactory. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CustomButton : UIControl{
    
    BOOL isSelect;
    //所属分组，用于互斥操作
    int  groupID;
    
    BOOL TouchFlag;//被点击的标志
    
    UIImageView * imageView;
    UIImageView * backgroundImageView;
    UILabel     * titleLabel;
    
    NSString    * BackGroundNormalImagePath;
    NSString    * BackGroundHighLightImagePath;
    NSString    * NormalImagePath;
    NSString    * HighLightImagePath;
    
    UIColor     * NormalTitleColor;
    UIColor     * HighLightTitleColor;
}

@property(nonatomic,assign)BOOL isSelect;
@property(nonatomic,assign)int  groupID;
@property(nonatomic,retain)NSString * BackGroundNormalImagePath;
@property(nonatomic,retain)NSString * BackGroundHighLightImagePath;
@property(nonatomic,retain)NSString * NormalImagePath;
@property(nonatomic,retain)NSString * HighLightImagePath;

@property(nonatomic,assign)UILabel  * titleLabel;
@property(nonatomic,retain)UIColor  * NormalTitleColor;
@property(nonatomic,retain)UIColor  * HighLightTitleColor;

- (id)initWithFrame:(CGRect)frame;

-(void)setNormal;
-(void)setHighLight;
-(void)setOnlyHigh;

@end
